home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / mess / MESS 0.133 / Macintosh / MessMenu 0.7.0 OSX uni.dmg / MessMenu.app / Contents / MacOS / messinfo.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2008-09-30  |  452 b   |  23 lines

  1. #!/bin/sh
  2.  
  3. PATH="$PATH:."
  4. if [ -z "$1" ]
  5. then
  6.     echo "Specify system name" >&2
  7.     exit 1
  8. fi
  9. if [ -z "$messdir" ]
  10. then
  11.     . ./messenv.sh
  12. fi
  13.  
  14. "$messdir"/mess -listxml "$1" | grep -F '<year>
  15. <manufacturer>
  16. <chip type=
  17. <display type=
  18. <sound channels=
  19. <driver status=' | sed 's%</.*%%' | sed 's%/>$%%' | tr -d '\011' | sed 's%^<%%' | tr '<' ' ' | sed 's%>%: %' | sed 's%" %"\
  20.  %g' | sed 's%type=%%' | tr -d '"'
  21. echo
  22. "$messdir"/mess -listdevices "$1" | cut -c13-
  23.